package com.kelvin.oocl.Thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadPool {
	ExecutorService threadPool;
	
	public ThreadPool(int counts) {
		threadPool = Executors.newFixedThreadPool(counts);
	}
	
	public void submit(Task task){
		threadPool.submit(task);
	}
}
